-- GENERATED SPELL FOR [Stone Giant] --


function spell0_23725(pUnit, Event) --@Rune Fist,Self--
pUnit:FullCastSpellOnTarget(49717,pUnit)
pUnit:RegisterEvent('Sorts_23725', 584, 1)
end

function spell1_23725(pUnit, Event) --@Stone Fist,Self--
pUnit:FullCastSpellOnTarget(49676,pUnit)
pUnit:RegisterEvent('Sorts_23725', 543, 1)
end

function spell2_23725(pUnit, Event) --@Stone Stomp,n/a--
pUnit:FullCastSpellOnTarget(49675,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23725', 2000, 1)
end

function Sorts_23725(pUnit, Event)
local choix_sorts_23725 = math.random(0, 2)
if choix_sorts_23725 == 0 then
pUnit:RegisterEvent('spell0_23725', 1, 1)
end
if choix_sorts_23725 == 1 then
pUnit:RegisterEvent('spell1_23725', 1, 1)
end
if choix_sorts_23725 == 2 then
pUnit:RegisterEvent('spell2_23725', 1, 1)
end
end

function mob23725_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23725', math.random(1500, 3000), 1)
end

function mob23725_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23725_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23725_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23725, 1, 'mob23725_Action')
RegisterUnitEvent(23725, 2, 'mob23725_Leave')
RegisterUnitEvent(23725, 3, 'mob23725_Kill')
RegisterUnitEvent(23725, 4, 'mob23725_Die')
